package Animal;

/**
 * @author 孤雪唯方
 * @date 2025/05/12
 * @description 鸟类
 */
public class Bird extends Animal implements IFlying{
    public Bird(String name, int age) {
        super(name, age);
    }

    /**
     * 鸟吃东西
     */
    @Override
    public void eat() {
        System.out.println(this.name + "在吃虫子~~~");
    }

    /**
     * 鸟会飞翔
     */
    @Override
    public void fly() {
        System.out.println(this.name + "在飞翔~~~");
    }
}
